From: Eli Zaretskii Date: Fri, 22 Jul 2011 17:42:43 +0000 (+0300) Subject: Fix bug #9149 with mouse highlight of empty lines. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~2740 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b8e14eaa474f1cda8d9a10c6ddba0b8c08a8e928;p=emacs.git Fix bug #9149 with mouse highlight of empty lines. src/xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object is an integer, which is important for empty lines. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6b341ddeb2c..52585dec3de 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-07-22 Eli Zaretskii + + * xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object + is an integer, which is important for empty lines. (Bug#9149) + 2011-07-22 Chong Yidong * frame.c (Fmodify_frame_parameters): In tty case, update the diff --git a/src/xdisp.c b/src/xdisp.c index 72a246ca0c3..905a7ecbf8f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -25029,7 +25029,7 @@ rows_from_pos_range (struct window *w, while (g < e) { - if (BUFFERP (g->object) + if ((BUFFERP (g->object) || INTEGERP (g->object)) && start_charpos <= g->charpos && g->charpos < end_charpos) *start = row; g++; @@ -25079,7 +25079,7 @@ rows_from_pos_range (struct window *w, while (g < e) { - if (BUFFERP (g->object) + if ((BUFFERP (g->object) || INTEGERP (g->object)) && start_charpos <= g->charpos && g->charpos < end_charpos) break; g++;